package com.newgrand.annexserver.beans;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 缩略图标
 * </p>
 *
 * @author minyang
 * @since 2019-09-04
 */
public class Attachmentpicthumb extends Model<Attachmentpicthumb> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "phid", type = IdType.AUTO)
    private Long phid;
    /**
     * 文件guid
     */
    private String asrFid;
    /**
     * 父文件GUID
     */
    private String pAsrFid;
    private byte[] picData;
    private Integer picSize;
    private String sessionid;
    private Date createtime;
    private Date updatetime;
    private Integer state;


    public Long getPhid() {
        return phid;
    }

    public void setPhid(Long phid) {
        this.phid = phid;
    }

    public String getAsrFid() {
        return asrFid;
    }

    public void setAsrFid(String asrFid) {
        this.asrFid = asrFid;
    }

    public String getpAsrFid() {
        return pAsrFid;
    }

    public void setpAsrFid(String pAsrFid) {
        this.pAsrFid = pAsrFid;
    }

    public byte[] getPicData() {
        return picData;
    }

    public void setPicData(byte[] picData) {
        this.picData = picData;
    }

    public Integer getPicSize() {
        return picSize;
    }

    public void setPicSize(Integer picSize) {
        this.picSize = picSize;
    }

    public String getSessionid() {
        return sessionid;
    }

    public void setSessionid(String sessionid) {
        this.sessionid = sessionid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.phid;
    }

    @Override
    public String toString() {
        return "Attachmentpicthumb{" +
                ", phid=" + phid +
                ", asrFid=" + asrFid +
                ", pAsrFid=" + pAsrFid +
                ", picData=" + picData +
                ", picSize=" + picSize +
                ", sessionid=" + sessionid +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", state=" + state +
                "}";
    }
}
